package com.ruoyi.hl.mapper;

import com.ruoyi.hl.reqbean.AddBanZuZhangBean;
import com.ruoyi.hl.reqbean.SHouHuanMyOutBloodBean;
import com.ruoyi.hl.reqbean.ShouHuanAddChuanYun;
import com.ruoyi.hl.reqbean.ShouHuanUserBean;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 参数配置 数据层
 *
 * @author ruoyi
 */
@Component
public interface ShouHuanMapper {
    /**
     * 新增
     */
    public int addUserInfo(@Param("data")ShouHuanUserBean bean);

    /**
     * 修改
     */
    public int updateUserInfo(@Param("data")ShouHuanUserBean bean);


    /**
     * 删除
     */
    public int deleteUserInfo(Long[] configId);


    /**
     * 查询
     */
    public List<ShouHuanUserBean> selectUserInfo(@Param("data")ShouHuanUserBean bean);

    /**
     * 查询用户手机号
     */
    public List<String> selectEquipmentByName(@Param("userName")String userName);


    public int setBloodDataFromOut(@Param("data")SHouHuanMyOutBloodBean myOutBloodBean);


    public int setHeartDataFromOut(@Param("data")SHouHuanMyOutBloodBean myOutBloodBean);


    public int setTemperatureDataFromOut(@Param("data")SHouHuanMyOutBloodBean myOutBloodBean);

    public List<ShouHuanAddChuanYun> selectBloodDetail();
    public List<ShouHuanAddChuanYun> selectHeartDetail();
    public List<ShouHuanAddChuanYun> selectTemperatureDetail();



     //-------------------------班组长增删改查--------------------------------

    /**
     * 新增
     */
    public int addBanZuInfo(@Param("data") AddBanZuZhangBean bean);

    /**
     * 修改
     */
    public int updateBanZuInfo(@Param("data")AddBanZuZhangBean bean);


    /**
     * 删除
     */
    public int deleteBanZuInfo(String id);


    /**
     * 查询列表
     */
    public List<AddBanZuZhangBean> selectBanZuInfo(@Param("data")AddBanZuZhangBean bean);

    /**
     * 查询详情
     */
    public AddBanZuZhangBean selectBanZuDetail(@Param("id")String id);
}
